//
//  TempViewController.swift
//  SinaWeibo
//
//  Created by 张洪毓 on 15/11/17.
//  Copyright © 2015年 张洪毓. All rights reserved.
//

import UIKit

class TempViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
  
        self.title = "\(navigationController?.childViewControllers.count)"
        view.backgroundColor = UIColor.randomColor()
    }

    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        let tmp = TempViewController()
        navigationController?.pushViewController(tmp, animated: true)
    }

    
    
    
}
